<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Ditto.Models.Item>" %>

<% if (Model.IsPostedBy(Context.User.Identity.Name)) { %>

    <%: Html.ActionLink("Edit Item", "Edit", new { id=Model.ItemID })%>
    |
    <%: Html.ActionLink("Delete Item", "Delete", new { id = Model.ItemID })%>    

<% } %>